package com.bkbw.live.battle.net.message.handler;
import com.bkbw.live.battle.actor.ConstActors;
import com.bkbw.live.common.dataproto.ClientToBattleServerPb.HeadType;
import com.bkbw.live.battle.net.message.MessageHandler;
import com.bkbw.live.battle.net.message.MessageObject;

public class MoveHandler extends MessageHandler {
	//重写消息处理方法
	public MoveHandler() {
		regist(HeadType.DUNGON_LOGIN_REQ_VALUE);
		regist(HeadType.DUNGON_LOGOUT_VALUE);
		regist(HeadType.DUNGON_PLAYER_MOVE_VALUE);
		regist(HeadType.DUNGON_PLAYER_MOVE_STATE_CHANGE_VALUE);
		regist(HeadType.DUNGON_USERINFO_REQ_VALUE);
		regist(HeadType.C2BS_BUILD_REQ_VALUE);
		regist(HeadType.C2BS_BUILD_REMOVE_REQ_VALUE);
		//regist(HeadType.C2BS_BUILD_LIST_REQ_VALUE);
		regist(HeadType.USER_SET_ATTACKTARGET_REQ_VALUE);
		regist(com.bkbw.live.common.dataproto.BattleToDatabasePb.HeadType.DB2BS_CHARACTER_RESP_VALUE);
		regist(HeadType.C2BS_BAG_ITEM_DETAIL_REQ_VALUE);
		regist(HeadType.C2BS_DROP_BAG_ITEM_REQ_VALUE);
		regist(com.bkbw.live.common.dataproto.BattleToDatabasePb.HeadType.DB2BS_DROP_BAG_ITEM_RESP_VALUE);
		regist(HeadType.C2BS_USE_BAG_ITEM_REQ_VALUE);
		regist(com.bkbw.live.common.dataproto.BattleToDatabasePb.HeadType.DB2BS_USE_BAG_ITEM_RESP_VALUE);
		regist(HeadType.C2BS_BAG_ITEM_DETAIL_REQ_VALUE);
		regist(HeadType.C2BS_EQUIP_REQ_VALUE);
		regist(HeadType.C2BS_BUY_ITEM_REQ_VALUE);
		regist(com.bkbw.live.common.dataproto.BattleToDatabasePb.HeadType.DB2BS_BUY_ITEM_RESP_VALUE);
		regist(com.bkbw.live.common.dataproto.BattleToDatabasePb.HeadType.DB2BS_EQUIP_RESP_VALUE);
	}
	
	@Override
	public void receive(MessageObject mo) {
		ConstActors.TAM.tell(mo);
	}
	
}
